package cn.leaf.chain;

/**
 *
 * desc: 老板责任链处理
 *
 * @author twinkle-leaf
 * @version v1.0.0
 * slogan: There are no two identical leaves in the world.🍃
 *
 */
public class BossChainHandler extends ChainHandler {

    @Override
    public void handler(Integer level) {
        if (level > 20) {
            System.out.println("董事长处理");
        } else {
            nextChainHandler.handler(level);
        }
    }
}